<section class="container_6 clearfix">
<?php echo $this->Html->css('searchuserbar'); ?>

        <fieldset>
        <legend>User Availability</legend>
        <div id="availablewrapper">	
<?php 
            //echo pr($selected);
            echo $form->create('User', array('action' => 'searchavail'));
            $options = array();
            $selected = array();
            foreach($avail as $av)
            {
                $options[$av['Available']['id']] = $av['Available']['avail_day'] . ' ' . $av['Available']['avail_time'];              
            }
            
            echo $form->input('Available.id', array('label' => '', 'multiple' => 'checkbox', 'options' => $options));
            ?>
            </div>
            
            <div>
            <?php echo $form->button('<span class="hourglass_go"></span>Search', array('class' => 'button button-gray accept')); ?>
<?php echo $form->end();?>
            


</fieldset>
</section>
<section class="container_6 clearfix">

<div id="Users">
<fieldset>
<legend>Volunteers</legend>
<table id="tulist">
<tr><th>Login</th><th>Name</th><th>Status</th></tr>
<?php 
//echo pr($found);
if(isset($found))
{
foreach($found as $u)
{
    echo '<tr>';
        if($u['User']['active'] == 0)
        {
            $status = 'Inactive';
        }
        else
        {
            $status = 'Active';
        }
        echo '<td>'. $this->Html->link($u['User']['email_address'], '/users/uprofile/'. $u['User']['id']) . '</td><td>'. $u['User']['fname'] . ' ' . $u['User']['lname'] . '</td><td>' . $status . '</td></tr>' ; //'<a href="../users/uprofile/' . $u['User']['id'] . '">' . $u['User']['fname'] . ' ' . $u['User']['lname']. ' ' . $u['User']['email_address']. '</a><br />';
}
}
?>
</table>
</fieldset>
</div>
</section>